﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace Model
{
   public class DbArea
    {
        #region DbArea
        /// <summary>
        /// 
        /// </summary>
        public DbArea()
        {
        }
        /// <summary>	 
        /// 
        /// </summary>
        public DbArea(Int32 areaID)
        {
            this.areaID = areaID;

        }
        /// <summary>	 
        /// 
        /// </summary>		
        public DbArea(DataRow dr)
        {
            int.TryParse(Convert.ToString(dr["AreaID"]), out areaID);
            this.AreaName = Convert.ToString(dr["AreaName"]);           
        }
        #endregion


        #region  AreaID int identity(1,1) not null,
        private Int32 areaID;
        /// <summary>	 
        /// 
        /// AutoInc
        /// PK
        /// </summary>
        public Int32 AreaID
        {
            get { return areaID; }
            set { areaID = value; }
        }
        #endregion

        #region AreaName varchar(200)
        private string areaName;
        public string AreaName
        {
            get { return areaName; }
            set { areaName = value; }
        }
        #endregion
    }
}
